package com.gzhryc.net_marketing.cloud.account.dao.enums;

public class CloudPayAccountOperateRecordEnum {

    public enum MoneyType {

        DepositMoney(1, "余额"),FreezeMoney(2, "冻结金额"),unfreezeMoney(2, "解冻金额");

        private Integer index;
        private String note;

        MoneyType(Integer index, String note) {
            this.index = index;
            this.note = note;
        }

        public Integer index() {
            return index;
        }

        public String note() {
            return note;
        }

        public static String note(Integer index) {
            MoneyType[] temp = MoneyType.values();
            for (int i = 0; i < temp.length; i++) {
                MoneyType item = temp[i];
                if (item.index.equals(index)) {
                    return item.note;
                }
            }
            return null;
        }
    }

    public enum Type {

        Increase(1, "充值"),Reduce(2, "支出"),Income(3, "收入"),Thaw(4, "解冻");

        private Integer index;
        private String note;

        Type(Integer index, String note) {
            this.index = index;
            this.note = note;
        }

        public Integer index() {
            return index;
        }

        public String note() {
            return note;
        }

        public static String note(Integer index) {
            Type[] temp = Type.values();
            for (int i = 0; i < temp.length; i++) {
                Type item = temp[i];
                if (item.index.equals(index)) {
                    return item.note;
                }
            }
            return null;
        }
    }

    public enum OperatorType {

        System(1, "系统"),Manager(2,"管理员"),Client(3,"客户");

        private Integer index;
        private String note;

        OperatorType(Integer index, String note) {
            this.index = index;
            this.note = note;
        }

        public Integer index() {
            return index;
        }

        public String note() {
            return note;
        }

        public Integer getIndex() {
            return index;
        }

        public String getNote() {
            return note;
        }

        public static String note(Integer index) {
            OperatorType[] temp = OperatorType.values();
            for (int i = 0; i < temp.length; i++) {
                OperatorType item = temp[i];
                if (item.index.equals(index)) {
                    return item.note;
                }
            }
            return null;
        }
    }
}
